// 引入需要的全局组件
import SvgIcon from '@/components/SvgIcon/index.vue'

import SearchComponent from "@/components/SearchComponent/index.vue";

import FileUpload from "@/components/FileUpload/index.vue"

import UpdateFile from "@/components/UpdateFile/index.vue"

// 全局对象
const allGloablComponent = {SvgIcon,SearchComponent,FileUpload,UpdateFile}

// 对外暴露插件对象
export default{
    install(app){
        Object.keys(allGloablComponent).forEach(key=>{
            app.component(key,allGloablComponent[key])
        })
    }
}